package database;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author link3988
 */
import java.util.ArrayList;
public class SubTopic {

    private String topic = "";
    ArrayList<MicroTopic> microtopics;
    public SubTopic(String tp)
    {
        topic = tp;
        microtopics = new ArrayList();
    }

    public String getTopic()
    {
        return topic;
    }

    public void addMicroTopic(MicroTopic mctp)
    {
        microtopics.add(mctp);
    }

    public int microSize()
    {
        return microtopics.size();
    }

    public MicroTopic getMicroTopic(int index)
    {
        return microtopics.get(index);
    }

}
